package com.gy.service;

import com.gy.mapper.BaoXiuMapper;
import com.gy.pojo.BaoXiu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaoXiuServiceImpl implements BaoXiuService {

    @Autowired
    BaoXiuMapper baoXiuMapper;

    @Override
    public List<BaoXiu> selectBXById(String Bname) {
        return baoXiuMapper.selectBXById(Bname);
    }

    @Override
    public void addBX(int Bno, String Bname, int Lid, int Qid, String Xiangxi) {
        baoXiuMapper.addBX(Bno,Bname,Lid,Qid,Xiangxi);
    }







    @Override
    public void deleteBXById(int id) {
        baoXiuMapper.deleteBXById(id);
    }



    @Override
    public void upsetBX(int Bid, String JinDu) {
        baoXiuMapper.upsetBX(Bid,JinDu);
    }

    @Override
    public List<BaoXiu> selectBX() {
        return baoXiuMapper.selectBX();
    }
}
